package ma.meditel.reporting.metier.implementations;

import java.util.Date;
import java.util.List;

import ma.meditel.reporting.dao.interfaces.ITrafficPerClassDao;
import ma.meditel.reporting.entities.TrafficClassification;
import ma.meditel.reporting.metier.interfaces.ITrafficPerClassMetier;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service
public class TrafficPerClassMetierImpl implements ITrafficPerClassMetier {

	private ITrafficPerClassDao dao;
	
	@Override
	public List<TrafficClassification> getAllInterfaceTrafficsBetween(Long idInterface, Date startDate, Date endDate, Long classTraffic) {
		return dao.getAllInterfaceTrafficsBetween(idInterface, startDate, endDate, classTraffic);
	}

	public ITrafficPerClassDao getDao() {
		return dao;
	}

	public void setDao(ITrafficPerClassDao dao) {
		this.dao = dao;
	}
	
}
